package cvar.io;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;

public class InputReader {

  
  public InputReader(String hpfcFileString, String needsFileString) {
  }

  public static ArrayList<Double> readDoubleFile(String fileString) throws Exception {
    BufferedReader reader= null;
    try {
      reader = new BufferedReader(new FileReader(fileString));
    } catch (Exception fileExc) {
    }
    ArrayList<Double> result = new ArrayList<Double>();
    boolean hasMoreLines = true;
    while (hasMoreLines) {
      String line = reader.readLine();
      if (null != line && !line.equals("")) {
        result.add(Double.valueOf(line));
      } else {
        hasMoreLines = false;
      }
    }
    reader.close();
    return result;
  }

}
